execute if score SP_MustDraw System matches 1.. run scoreboard players remove SP_MustDraw System 1

execute if score SP_MustDraw System matches 1.. run scoreboard players set DrawType System 0
execute if score SP_MustDraw System matches ..0 run scoreboard players set DrawType System 2

execute if score SP_MustDraw System matches ..0 run scoreboard players set SP_MustDraw System 50

summon minecraft:villager 173 4 5 {NoGravity:1b,Invulnerable:1b,Tags: ["SP_N2","GUI"],Motion:[0.0d,0.0d,0.0d],Health:20.0f,Silent:1b,NoAI:1b,Rotation:[179.28174f, 0.0f]}

$execute if score DrawType System matches 2 run function dab:drawsystem/sp_md {SP_Poor:$(Now_SP_Poor)}
$execute if score DrawType System matches 0 run function dab:drawsystem/sp_d {SP_Poor:$(Now_SP_Poor)}
